<?php

namespace app\validate\api\housing;

use think\Validate;

class HousingSourceoffice3Validate extends Validate
{

	//资管房源
	protected $rule = [
		'building_floor_height'   => 'require',
		'building_floor_heights'   => 'require',
		'office_building'   => 'require',
		'shop_type1'   => 'require',
		'shop_type'   => 'require',
		'is_register'   => 'require',
		'start_month'   => 'require',
		'exempt_month'   => 'require|number',
		'mode_detain'   => 'require',
		'mode_pay'   => 'require',
//		'room_rate'   => 'require',
		'Joint_office'   => 'require',
//		'title_name'   => 'require',
//		'Joint_office_img'   => 'require',
//		'Joint_office_is_negotiate'   => 'require',
//		'Joint_office_price'   => 'require',
//		'Joint_office_delineate_pirce'   => 'require',
//		'Joint_office_specifications'   => 'require',

	];


	protected $message = [
		'building_floor_height.require' => '建筑层高不能为空',
		'building_floor_heights.require' => '总楼层不能为空',
		'office_building.require' => '写字楼装修不能为空',
		'shop_type1.require' => '写字楼等级不能为空',
		'shop_type.require' => '写字楼类型不能为空',
		'is_register.require' => '是否注册不能为空',
		'start_month.require' => '起始租月不能为空',
		'exempt_month.require' => '免租期不能为空',
		'exempt_month.number' => '免租期只能是整数',
		'mode_detain.require' => '押金不能为空',
		'mode_pay.require' => '付几个月不能为空',
//		'room_rate.require' => '得房率不能为空',
		'Joint_office.require' => '联合办公不能为空',
//		'Joint_office_img.require' => '联合办公图不能为空',
//		'title_name.require' => '联合办公标题不能为空',
//		'Joint_office_is_negotiate.require' => '是否面议不能为空',
//		'Joint_office_price.require' => '联合办公价格不能为空',
//		'Joint_office_delineate_pirce.require' => '联合办公划线价不能为空',
//		'Joint_office_specifications.require' => '联合办公规格不能为空',


	];

}